@font-face {
  font-family: wordsFont;
  src: url('./font/mvboli.ttf');
}

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

@keyframes pengpengpeng {
  from {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }

  to {
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
  }
}

@keyframes rotate3D {
  from {
    transform: rotateY(-10deg) rotateX(80deg) rotateZ(0deg);
  }

  to {
    transform: rotateY(-30deg) rotateX(80deg) rotateZ(360deg);
  }
}

@keyframes rotate3D-2 {
  from {
    transform: rotateY(0deg) rotateX(82deg);
  }

  to {
    transform: rotateY(-60deg) rotateX(85deg);
  }
}

@keyframes rotate3D-3 {
  from {
    transform: rotateY(0deg) rotateX(82deg);
  }

  to {
    transform: rotateY(65deg) rotateX(85deg);
  }
}

@keyframes rotate2D {
  from {
    transform: rotate(-540deg);
  }

  to {
    transform: rotate(540deg);
  }
}

@keyframes rotate2D-4 {
  from {
    transform: rotate(-540deg) scale(0.99);
  }

  to {
    transform: rotate(540deg) scale(0.99);
  }
}

body {
  background-color: #040b23;
}

#particleAnimation {
  width: 1200px;
  height: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

#heart {
  -webkit-animation: pengpengpeng 2s ease-out infinite alternate-reverse;
  -o-animation: pengpengpeng 2s ease-out infinite alternate-reverse;
  animation: pengpengpeng 2s ease-out infinite alternate-reverse;
}

#heartDiv > div {
  position: absolute;
  top: -60px;
  left: -70px;

  & > div {
    width: 320px;
    height: 300px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
  }
}

#heartDiv {
  top: 130px;
  left: 750px;
  position: absolute;
  perspective: 1200px;
  transform-style: preserve-3d;
  opacity: 0;
  transition: opacity 16s linear;

  #circle1 {
    -webkit-animation: rotate3D 10s linear infinite alternate-reverse;
    -o-animation: rotate3D 10s linear infinite alternate-reverse;
    animation: rotate3D 10s linear infinite alternate-reverse;

    & > div {
      border: 1px solid red;
      -webkit-animation: rotate2D 8s linear infinite alternate-reverse;
      -o-animation: rotate2D 8s linear infinite alternate-reverse;
      animation: rotate2D 8s linear infinite alternate-reverse;
      -webkit-box-shadow: 0 0 4px 10px rgba(255, 255, 255, 0.62);
      -moz-box-shadow: 0 0 4px 10px rgba(255, 255, 255, 0.62);
      box-shadow: 0 0 4px 10px rgba(255, 255, 255, 0.62);
    }
  }

  #circle2 {
    -webkit-animation: rotate3D-2 8s linear infinite alternate-reverse;
    -o-animation: rotate3D-2 8s linear infinite alternate-reverse;
    animation: rotate3D-2 8s linear infinite alternate-reverse;

    & > div {
      border: 1px solid #ab80ff;
      -webkit-animation: rotate2D 15s linear infinite alternate-reverse;
      -o-animation: rotate2D 15s linear infinite alternate-reverse;
      animation: rotate2D 15s linear infinite alternate-reverse;
      -webkit-box-shadow: 0 0 2px 6px rgba(240, 212, 255, 0.2);
      -moz-box-shadow: 0 0 2px 6px rgba(240, 212, 255, 0.2);
      box-shadow: 0 0 2px 6px rgba(240, 212, 255, 0.2);
    }
  }

  #circle3 {
    -webkit-animation: rotate3D-3 6s linear infinite alternate-reverse;
    -o-animation: rotate3D-3 6s linear infinite alternate-reverse;
    animation: rotate3D-3 6s linear infinite alternate-reverse;

    & > div {
      border: 1px solid #ffae9f;
      -webkit-animation: rotate2D 10s linear infinite alternate-reverse;
      -o-animation: rotate2D 10s linear infinite alternate-reverse;
      animation: rotate2D 10s linear infinite alternate-reverse;
      -webkit-box-shadow: 0 0 1px 3px rgb(255, 242, 226);
      -moz-box-shadow: 0 0 1px 3px rgb(255, 242, 226);
      box-shadow: 0 0 1px 3px rgb(255, 242, 226);
    }
  }

  #circle4 {
    -webkit-animation: rotate3D-2 8s linear infinite alternate-reverse;
    -o-animation: rotate3D-2 8s linear infinite alternate-reverse;
    animation: rotate3D-2 8s linear infinite alternate-reverse;

    & > div {
      border: 1px solid rgb(105, 0, 122);
      -webkit-animation: rotate2D-4 15s linear infinite alternate-reverse;
      -o-animation: rotate2D-4 15s linear infinite alternate-reverse;
      animation: rotate2D-4 15s linear infinite alternate-reverse;
    }
  }
}

#heart-bg {
  position: absolute;
  top: 0;
  left: 582px;
  height: 424px;
  opacity: 0;
  transition: opacity 3s ease-out;
}

#heart,
#heartDiv {
  width: 200px;
}

#lrc {
  position: absolute;
  color: white;
  font-family: wordsFont, 'sans-serif', 'Times New Roman', '宋体';
  text-align: center;
  font-size: 40px;
  width: 700px;
  right: 0;
  top: 400px;
  text-shadow: 3px 5px 20px white;
}

#myParticle {
  position: absolute;
  left: 0;
  top: 0;
}

#words {
  position: absolute;
  color: white;
  width: 90%;
  font-size: 30px;
  top: 300px;
  text-align: center;
  opacity: 0;
  left: 5%;
}

@keyframes messageBox1 {
  0% {
    top: 200px;
    opacity: 0;
  }

  40% {
    top: 300px;
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes messageBox2 {
  0% {
    top: 200px;
    opacity: 0;
  }

  40% {
    top: 300px;
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.messageBoxActive1 {
  -webkit-animation: messageBox1 8s ease-in;
  -o-animation: messageBox1 8s ease-in;
  animation: messageBox1 8s ease-in;
}

.messageBoxActive2 {
  -webkit-animation: messageBox2 8s ease-in;
  -o-animation: messageBox2 8s ease-in;
  animation: messageBox2 8s ease-in;
}
